Class org.omg.CORBA.NVList
All Packages Class Hierarchy This Package Previous Next Index
Class org.omg.CORBA.NVList
java.lang.Object
|
+----org.omg.CORBA.NVList
- public class NVList
- extends Object
The NVList class is used in the request operations to describe
arguments, as well as in the Context object to describe context
values. It maintains a modifiable list of NamedValues, each of
which consists of a string name, an Any value and an integer flag.
- See Also:
- NamedValue, Context
-
NVList()
-
-
add(int)
- Add a NamedValue with the given flags.
-
add_item(String, int)
- Add a NamedValue with the given name and flags.
-
add_value(String, Any, int)
- Add a NamedValue with the given flags.
-
count()
- A count of number of NamedValues in the NVList
-
item(int)
- Return the NamedValue at the given index
-
remove(int)
- Remove the NamedValue at the given index.
NVList
public NVList()
count
public abstract int count() throws SystemException
- A count of number of NamedValues in the NVList
- Returns:
- number of NamedValues in the NVList.
add
public abstract NamedValue add(int flags) throws SystemException
- Add a NamedValue with the given flags.
- Parameters:
- flags - flags for the new NamedValue.
- Returns:
- the NamedValue created.
add_item
public abstract NamedValue add_item(String itemName,
int flags) throws SystemException
- Add a NamedValue with the given name and flags.
- Parameters:
- itemName - the name for the new NamedValue.
- flags - flags for the new NamedValue.
- Returns:
- the NamedValue created.
add_value
public abstract NamedValue add_value(String itemName,
Any val,
int flags) throws SystemException
- Add a NamedValue with the given flags.
- Parameters:
- itemName - the name for the new NamedValue.
- value - the Any value for the new NamedValue.
- flags - flags for the new NamedValue.
- Returns:
- the NamedValue created.
item
public abstract NamedValue item(int index) throws Bounds, SystemException
- Return the NamedValue at the given index
- Parameters:
- index - the index of NamedValue desired.
- Returns:
- the NamedValue at the given index.
- Throws: Bounds
- raised if the index is greater than
or equal to number of NamedValues.
remove
public abstract void remove(int index) throws Bounds, SystemException
- Remove the NamedValue at the given index. Note that the indices
of all NamedValues following this one are shifted down by one.
- Parameters:
- index - the index of NamedValue to be removed.
- Throws: Bounds
- raised if the index is greater than
or equal to number of NamedValues.
All Packages Class Hierarchy This Package Previous Next Index